package com.ruoyi.SuveryInterface.Imp.mapper;

import com.ruoyi.SuveryInterface.Imp.domain.SysNegativeDetails;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-07-12
 */
public interface SysNegativeDetailsMapper extends BaseMapper<SysNegativeDetails> {

    void insertBatch( @Param("negativeDetails") List<SysNegativeDetails> negativeDetails);

    @Select("select id,sys_negative_id as sysNegativeId,hit,data_id as dataId,score from sys_negative_details where sys_negative_id = #{negativeId}")
    List<SysNegativeDetails> selectSysNegativeDetailsByNegativeId(Long negativeId);
}
